package co.edu.unal.satacredito.rest.auth;

import javax.ws.rs.Path;

/**
 * User resource used just to switch to other sub-resources.
 * Sub-resource available at this path:
 * <pre>/{user}</pre>
 */
public class UserResource extends ResourceBase {
    UserResource(String user, ResourceBase parent) {
        super(user, parent);
        checkUser();
    }

    /**
     * Sub-resource locator for {@link StatusesResource}.
     *
     * @return resource corresponding to the list of all user statuses
     */
    @Path("statuses/")
    public StatusesResource getStatuses() {
        return new StatusesResource(this);
    }
}
